<template>
    <div>
    <el-card class="box-card">
    <div slot="header" class="clearfix">
        <span style="font-size:30px">筆記本</span>
    </div>
    <div v-for="(o,index) in memo" :key="index" class="text item">
        <div class="title">
           {{'標題 ' + o.title}} 
        </div>
        <div class="content">
        {{'內容 ' + o.content}}
        </div>
        <!-- <template slot="oper" slot-scope="scope">
        <el-switch
        v-model="value2"
        active-color="#13ce66"
        inactive-color="#ff4949">
        </el-switch>
        </template> -->
    </div>
    </el-card>
    </div>
</template>

<script>
export default {
    data() {
        return {
            memo: [
                {title:"aaa",content:"bbb"},
                {title:"aaa1",content:"bbb1"},
                {title:"aaa2",content:"bbb2"},
                {title:"aaa3",content:"bbb3"}
            
            ],

            value1: true,
            value2: true
        }
    },
}
</script>


<style>
 .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
    text-align: left;
  }
  .item .title{
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
  }
    .item .content{
    margin-left: 8px;
  }
  .item:hover{
      background-color: whitesmoke;
  }
  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width:96%;
    margin: 0 auto;
    margin-top: 40px;
  }
</style>
